package com.css.fxfzypg.manage.sampling.repository;

import com.css.fxfzypg.manage.sampling.repository.entity.SamplingEntity;
import com.css.fxfzypg.manage.sampling.vo.SamplingParams;
import org.springframework.data.domain.Page;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Repository
public interface SamplingReqository {

    boolean insertSurvey(SamplingEntity samplingEntity);

    Map<String,Object>  querySubmitOrNot(String submitFlag, String taskCode, int curPage, int pageSize, String userId);

    boolean updateIsSubmit(Map<String,String> map);

    SamplingEntity queryData(String id);

    boolean modifyData(SamplingEntity samplingEntity);

    Map<String, Object> querySamplingData(SamplingParams queryParams, int curPage, int pageSize);

    boolean deleteSampling(String id);


}
